<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="utf-8"/>
    <title>Index Page - SpErk Admin</title>
    <meta name="description" content="overview &amp; stats"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" th:href="@{/assets/css/bootstrap.min.css}"/>
    <link rel="stylesheet" th:href="@{/assets/font-awesome/4.5.0/css/font-awesome.min.css}"/>
    <!-- page specific plugin styles -->
    <link rel="stylesheet" th:href="@{/assets/css/bootstrap-duallistbox.min.css}"/>
    <!-- text fonts -->
    <link rel="stylesheet" th:href="@{/assets/css/fonts.googleapis.com.css}"/>
    <!-- ace styles -->
    <link rel="stylesheet" th:href="@{/assets/css/ace.min.css}" class="ace-main-stylesheet" id="main-ace-style"/>
    <!--[if lte IE 9]>
    <link rel="stylesheet" th:href="@{/assets/css/ace-part2.min.css}" class="ace-main-stylesheet"/>
    <![endif]-->
    <link rel="stylesheet" th:href="@{/assets/css/ace-skins.min.css}"/>
    <link rel="stylesheet" th:href="@{/assets/css/ace-rtl.min.css}"/>
    <!--[if lte IE 9]>
    <link rel="stylesheet" th:href="@{/assets/css/ace-ie.min.css}"/>
    <![endif]-->
    <link rel="stylesheet" th:href="@{/assets/css/falseTable.css}"/>
    <!-- inline styles related to this page -->
    <!-- ace settings handler -->
    <script th:src="@{/assets/js/ace-extra.min.js}"></script>
    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
    <!--[if lte IE 8]>
    <script th:src="@{/assets/js/html5shiv.min.js}"></script>
    <script th:src="@{/assets/js/respond.min.js}"></script>
    <![endif]-->
</head>

<body class="no-skin">
<div id="navbar" class="navbar navbar-default ace-save-state">
    <div class="navbar-container ace-save-state" id="navbar-container">
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
            <span class="sr-only">Toggle sidebar</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <div class="navbar-header pull-left">
            <a href="../index.html" class="navbar-brand">
                <small><i class="fa fa-leaf"></i> SpErk Application Admin</small>
            </a>
        </div>
        <div class="navbar-buttons navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <!-- 系统消息展示标签 -->
                <li class="grey dropdown-modal">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="ace-icon fa fa-tasks"></i>
                        <span class="badge badge-grey">4</span>
                    </a>
                    <!-- 系统消息内容标签 -->
                    <ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                        <li class="dropdown-header">
                            <i class="ace-icon fa fa-check"></i>
                            4 Tasks to complete
                        </li>
                        <li class="dropdown-content">
                            <ul class="dropdown-menu dropdown-navbar">
                                <li>
                                    <a href="#">
                                        <div class="clearfix">
                                            <span class="pull-left">Software Update</span>
                                            <span class="pull-right">65%</span>
                                        </div>
                                        <div class="progress progress-mini">
                                            <div style="width:65%" class="progress-bar"></div>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="clearfix">
                                            <span class="pull-left">Hardware Upgrade</span>
                                            <span class="pull-right">35%</span>
                                        </div>

                                        <div class="progress progress-mini">
                                            <div style="width:35%" class="progress-bar progress-bar-danger"></div>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <div class="clearfix">
                                            <span class="pull-left">Unit Testing</span>
                                            <span class="pull-right">15%</span>
                                        </div>

                                        <div class="progress progress-mini">
                                            <div style="width:15%" class="progress-bar progress-bar-warning"></div>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <div class="clearfix">
                                            <span class="pull-left">Bug Fixes</span>
                                            <span class="pull-right">90%</span>
                                        </div>

                                        <div class="progress progress-mini progress-striped active">
                                            <div style="width:90%" class="progress-bar progress-bar-success"></div>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </li>

                        <li class="dropdown-footer">
                            <a href="#">
                                See tasks with details
                                <i class="ace-icon fa fa-arrow-right"></i>
                            </a>
                        </li>
                    </ul>
                </li>
                <!-- 系统提醒展示标签 -->
                <li class="purple dropdown-modal">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="ace-icon fa fa-bell icon-animated-bell"></i>
                        <span class="badge badge-important">8</span>
                    </a>
                    <!-- 系统提醒内容标签 -->
                    <ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
                        <li class="dropdown-header">
                            <i class="ace-icon fa fa-exclamation-triangle"></i>
                            8 Notifications
                        </li>

                        <li class="dropdown-content">
                            <ul class="dropdown-menu dropdown-navbar navbar-pink">
                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-pink fa fa-comment"></i>
														New Comments
													</span>
                                            <span class="pull-right badge badge-info">+12</span>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <i class="btn btn-xs btn-primary fa fa-user"></i>
                                        Bob just signed up as an editor ...
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-success fa fa-shopping-cart"></i>
														New Orders
													</span>
                                            <span class="pull-right badge badge-success">+8</span>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="#">
                                        <div class="clearfix">
													<span class="pull-left">
														<i class="btn btn-xs no-hover btn-info fa fa-twitter"></i>
														Followers
													</span>
                                            <span class="pull-right badge badge-info">+11</span>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </li>

                        <li class="dropdown-footer">
                            <a href="#">
                                See all notifications
                                <i class="ace-icon fa fa-arrow-right"></i>
                            </a>
                        </li>
                    </ul>
                </li>
                <!-- 邮件消息提醒展示标签 -->
                <li class="green dropdown-modal">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="ace-icon fa fa-envelope icon-animated-vertical"></i>
                        <span class="badge badge-success">5</span>
                    </a>
                    <!-- 邮件消息提醒内容标签 -->
                    <ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                        <li class="dropdown-header"><i class="ace-icon fa fa-envelope-o"></i>5 Messages</li>
                        <li class="dropdown-content">
                            <ul class="dropdown-menu dropdown-navbar">
                                <li>
                                    <a href="#" class="clearfix">
                                        <!--<img src="assets/images/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar"/>-->
                                        <span class="msg-body">
                                            <span class="msg-title"><span class="blue">Alex:</span>Ciao sociis natoque penatibus et auctor ...</span>
                                            <span class="msg-time"><i class="ace-icon fa fa-clock-o"></i><span>a moment ago</span></span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="#" class="clearfix">
                                        <!--<img src="assets/images/avatars/avatar3.png" class="msg-photo"alt="Susan's Avatar"/>-->
                                        <span class="msg-body">
                                            <span class="msg-title"><span class="blue">Susan:</span>Vestibulum id ligula porta felis euismod ...</span>
                                            <span class="msg-time"><i class="ace-icon fa fa-clock-o"></i><span>20 minutes ago</span></span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="#" class="clearfix">
                                        <!--<img src="assets/images/avatars/avatar4.png" class="msg-photo" alt="Bob's Avatar"/>-->
                                        <span class="msg-body">
                                            <span class="msg-title"><span class="blue">Bob:</span>Nullam quis risus eget urna mollis ornare ...</span>
                                            <span class="msg-time"><i
                                                    class="ace-icon fa fa-clock-o"></i><span>3:15 pm</span></span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="#" class="clearfix">
                                        <!--<img src="assets/images/avatars/avatar2.png" class="msg-photo" alt="Kate's Avatar"/>-->
                                        <span class="msg-body">
                                            <span class="msg-title"><span class="blue">Kate:</span>Ciao sociis natoque eget urna mollis ornare ...</span>
                                            <span class="msg-time"><i
                                                    class="ace-icon fa fa-clock-o"></i><span>1:33 pm</span></span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="#" class="clearfix">
                                        <!--<img src="assets/images/avatars/avatar5.png" class="msg-photo" alt="Fred's Avatar"/>-->
                                        <span class="msg-body">
                                            <span class="msg-title"><span class="blue">Fred:</span>Vestibulum id penatibus et auctor  ...</span>
                                            <span class="msg-time"><i
                                                    class="ace-icon fa fa-clock-o"></i><span>10:09 am</span></span>
                                        </span>
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown-footer"><a href="inbox.html">See all messages<i
                                class="ace-icon fa fa-arrow-right"></i></a></li>
                    </ul>
                </li>
                <!-- 头像区域 -->
                <li class="light-blue dropdown-modal">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" th:src="@{/assets/images/avatars/user.jpg}" alt="Jason's Photo"/>
                        <span class="user-info"><small>欢迎,</small><i th:text="${admin.userName}"></i>
                            <i class="ace-icon fa fa-caret-down"></i></span>
                    </a>
                    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li><a href="#"><i class="ace-icon fa fa-cog"></i>Settings</a></li>
                        <li><a href="profile.html"><i class="ace-icon fa fa-user"></i>Profile</a></li>
                        <li class="divider"></li>
                        <li><a th:href="@{/logout}"><i class="ace-icon fa fa-power-off"></i>Logout</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div><!-- /.navbar-container -->
</div>
<div class="main-container ace-save-state" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.loadState('main-container')
        } catch (e) {
        }
    </script>
    <div id="sidebar" class="sidebar responsive ace-save-state">
        <script type="text/javascript">
            try {
                ace.settings.loadState('sidebar')
            } catch (e) {
            }
        </script>
        <!-- 头部快捷链接 -->
        <div class="sidebar-shortcuts" id="sidebar-shortcuts">
            <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                <button class="btn btn-success">
                    <i class="ace-icon fa fa-signal"></i>
                </button>
                <button class="btn btn-info">
                    <i class="ace-icon fa fa-pencil"></i>
                </button>
                <button class="btn btn-warning">
                    <i class="ace-icon fa fa-users"></i>
                </button>
                <button class="btn btn-danger">
                    <i class="ace-icon fa fa-cogs"></i>
                </button>
            </div>
            <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                <span class="btn btn-success"></span>
                <span class="btn btn-info"></span>
                <span class="btn btn-warning"></span>
                <span class="btn btn-danger"></span>
            </div>
        </div><!-- /.sidebar-shortcuts -->
        <!-- 菜单列表 -->
        <ul class="nav nav-list">
            <li th:each="menu:${menuVS}">
                <a th:href="${menu.url}" th:class="@{dropdown-toggle}">
                    <i th:class="' menu-icon ' + ${menu.icon} "></i>
                    <span class="menu-text" th:text="${menu.name}"></span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>
                <ul class="submenu">
                    <li class="" th:each="subMenu:${menu.subMenus}">
                        <a th:href="'/micoUSC'+ ${subMenu.url}" target="_self">
                            <i th:class="' menu-icon ' + ${subMenu.icon}"></i><span th:text="${subMenu.name}"/>
                            <b class="arrow"></b>
                        </a>
                    </li>
                </ul>
            </li>
        </ul><!-- /.nav-list -->
        <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state"
               data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
        </div>
    </div>
    <div class="main-content">
        <div class="main-content-inner">
            <div class="breadcrumbs ace-save-state" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa fa-home home-icon"></i>
                        <a href="#">主界面</a>
                    </li>
                    <li class="active">系统菜单管理</li>
                </ul><!-- /.breadcrumb -->
            </div>
            <input type="hidden" id="errCodeVal" th:value="${errMsg.code}"/>
            <div class="alert alert-block alert-success" id="succMsgDiv" style="display: none">
                <button class="close" type="button" data-dismiss="alert"><i class="ace-icon fa fa-times red"></i></button>
                <i class="ace-icon fa fa-check green"></i> 请求处理成功 <small th:text="${errMsg.code}"></small>
                <strong class="green" th:text="${errMsg.msg}"></strong>
            </div>
            <div class="alert alert-block alert-danger red" id="errMsgDiv" style="display: none">
                <button class="close" type="button" data-dismiss="alert"><i class="ace-icon fa fa-times red"></i></button>
                <i class="ace-icon fa fa-times bigger-110 red"></i> 请求处理失败 <small id="errCodeText" th:text="${errMsg.code}"></small>
                <strong class="warning" th:text="${errMsg.msg}" id="errMsgText"></strong>
            </div>
            <div class="page-content">
                <!-- 悬浮工具栏 -->
                <div class="ace-settings-container" id="ace-settings-container">
                    <div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
                        <i class="ace-icon fa fa-cog bigger-130"></i>
                    </div>
                    <div class="ace-settings-box clearfix" id="ace-settings-box">
                        <div class="pull-left width-50">
                            <div class="ace-settings-item">
                                <div class="pull-left">
                                    <select id="skin-colorpicker" class="hide">
                                        <option data-skin="no-skin" value="#438EB9">#438EB9</option>
                                        <option data-skin="skin-1" value="#222A2D">#222A2D</option>
                                        <option data-skin="skin-2" value="#C6487E">#C6487E</option>
                                        <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
                                    </select>
                                </div>
                                <span>&nbsp; 更换颜色 </span>
                            </div>
                            <div class="ace-settings-item">
                                <input type="checkbox" class="ace ace-checkbox-2 ace-save-state"
                                       id="ace-settings-navbar" autocomplete="off"/>
                                <label class="lbl" for="ace-settings-navbar"> 固定导航栏 </label>
                            </div>
                            <div class="ace-settings-item">
                                <input type="checkbox" class="ace ace-checkbox-2 ace-save-state"
                                       id="ace-settings-sidebar" autocomplete="off"/>
                                <label class="lbl" for="ace-settings-sidebar"> 固定边栏 </label>
                            </div>
                            <div class="ace-settings-item">
                                <input type="checkbox" class="ace ace-checkbox-2 ace-save-state"
                                       id="ace-settings-breadcrumbs" autocomplete="off"/>
                                <label class="lbl" for="ace-settings-breadcrumbs"> 固定面包屑 </label>
                            </div>
                            <div class="ace-settings-item">
                                <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl"
                                       autocomplete="off"/>
                                <label class="lbl" for="ace-settings-rtl"> 镜像</label>
                            </div>
                            <div class="ace-settings-item">
                                <input type="checkbox" class="ace ace-checkbox-2 ace-save-state"
                                       id="ace-settings-add-container" autocomplete="off"/>
                                <label class="lbl" for="ace-settings-add-container">
                                    内边距 <b>页面居中</b>
                                </label>
                            </div>
                        </div><!-- /.pull-left -->
                        <div class="pull-left width-50">
                            <div class="ace-settings-item">
                                <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover"
                                       autocomplete="off"/>
                                <label class="lbl" for="ace-settings-hover"> 悬停显示子菜单</label>
                            </div>
                            <div class="ace-settings-item">
                                <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact"
                                       autocomplete="off"/>
                                <label class="lbl" for="ace-settings-compact"> 紧凑侧边栏 </label>
                            </div>
                            <div class="ace-settings-item">
                                <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight"
                                       autocomplete="off"/>
                                <label class="lbl" for="ace-settings-highlight"> 允许所有控件</label>
                            </div>
                        </div><!-- /.pull-left -->
                    </div><!-- /.ace-settings-box -->
                </div><!-- /.ace-settings-container -->
                <!-- 页面内容 -->
                <div class="page-header">
                    <h1>主页面
                        <a th:href="@{/sys/sysMenu_0_0_0}" target="_self">
                            <small><i class="ace-icon fa fa-angle-double-right"></i>&nbsp; 系统菜单管理</small>
                        </a>
                    </h1>
                </div><!-- /.page-header -->

                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <!-- 系统菜单列表 -->
                        <div class="row">
                            <div class="col-xs-12 col-sm-6 widget-container-col" id="widget-container-col-1">
                                <div class="widget-box" id="widget-box-1">
                                    <div class="widget-header">
                                        <h5 class="widget-title">系统菜单信息</h5>
                                        <div class="widget-toolbar">
                                            <div class="widget-menu">
                                                <a href="#" data-action="settings" data-toggle="dropdown">
                                                    <i class="ace-icon fa fa-bars"></i>
                                                </a>
                                                <ul class="dropdown-menu dropdown-menu-right dropdown-light-blue dropdown-caret dropdown-closer">
                                                    <li><a th:href="@{/sys/sysRole_0_0_0}">重置数据</a></li>
                                                </ul>
                                            </div>
                                            <a href="#" data-action="fullscreen" class="orange2">
                                                <i class="ace-icon fa fa-expand"></i>
                                            </a>
                                            <a href="#" data-action="collapse">
                                                <i class="ace-icon fa fa-chevron-up"></i>
                                            </a>
                                        </div>
                                    </div>
                                    <div class="widget-body">
                                        <div class="widget-main">
                                            <form id="menuForm" class="form-horizontal" role="form"
                                                  th:action="@{/sys/addSysMenu}" target="_self" method="post">
                                                <input type="hidden" id="adminvID" name="id" th:value="${adminMenuv.id}"/>
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right"
                                                           for="form-field-1"> 系统菜单名称 </label>
                                                    <div class="col-sm-9">
                                                        <input type="text" id="form-field-1" class="col-xs-10 col-sm-5"
                                                               name="name" th:value="${adminMenuv.name}"/>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right"
                                                           for="form-field-2"> 系统菜单访问地址 </label>
                                                    <div class="col-sm-9">
                                                        <input type="text" id="form-field-2" class="col-xs-10 col-sm-5"
                                                               name="url" th:value="${adminMenuv.url}"/>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right"
                                                           for="form-field-3"> 系统菜单排序 </label>
                                                    <div class="col-sm-9">
                                                        <input type="text" id="form-field-3" class="col-xs-10 col-sm-5"
                                                               name="classes" th:value="${adminMenuv.classes}"/>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right"
                                                           for="form-field-4"> 系统菜单权限 </label>
                                                    <div class="col-sm-9">
                                                        <input type="text" id="form-field-4" class="col-xs-10 col-sm-5"
                                                               name="permission" th:value="${adminMenuv.permission}"/>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right"
                                                           for="form-field-5"> 系统菜单ICON </label>
                                                    <div class="col-sm-9">
                                                        <input type="text" id="form-field-5" class="col-xs-10 col-sm-5"
                                                               name="icon" th:value="${adminMenuv.icon}"/>
                                                    </div>
                                                </div>
                                                <div class="space-4"></div>
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right"
                                                           for="form-field-6"> 父菜单 </label>
                                                    <div class="col-sm-9">
                                                        <select name="bundMenuSelect" id="form-field-6" class="col-sm-5">
                                                            <option value="-1">主菜单</option>
                                                            <option th:each="select:${bundMenuSelect}"
                                                                    th:value="${select.selectValue}"
                                                                    th:text="${select.selectText}"
                                                                    th:selected="${select.selected}"></option>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="clearfix form-actions">
                                                    <div class="col-md-offset-3 col-md-9">
                                                        <button class="btn btn-info" style="margin: 15px" type="button" th:id="@{menuSubmitButton}">
                                                            <i class="ace-icon fa fa-check bigger-110"></i>保存数据
                                                        </button>
                                                        <button class="btn" type="reset" onclick="formReset()">
                                                            <i class="ace-icon fa fa-undo bigger-110"></i>数据重置
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- 数据分栏行 -->
                        <div class="hr hr32 hr-dotted"></div>
                        <div class="row">
                            <div class="col-xs-12 out_scoll" style="height:320px;overflow:auto;">
                                <table id="simple-table" class="table table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th class="center"></th>
                                        <th>系统菜单名称</th>
                                        <th>系统菜单访问地址</th>
                                        <th>系统菜单排序</th>
                                        <th>父菜单</th>
                                        <th>系统菜单权限</th>
                                        <th>系统菜单ICON</th>
                                        <th></th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:each="menu,menuStat:${adminMenus}">
                                        <td class="center" style="width: 5%">
                                            <label class="pos-rel"><input type="checkbox" class="ace"/>
                                                <span class="lbl"></span></label>
                                        </td>
                                        <td>
                                            <a href="#" th:text="${menu.name}"></a>
                                        </td>
                                        <td th:text="${menu.url}"></td>
                                        <td th:text="${menu.classes}"></td>
                                        <td th:text="${menu.parentMenuName}"></td>
                                        <td th:text="${menu.permission}"></td>
                                        <td><i th:class="'ace-icon '+${menu.icon}"></i></td>
                                        <td>
                                            <div class="hidden-sm hidden-xs btn-group">
                                                <a th:href="@{/sys/initSysMenu?id=}+${menu.id}">
                                                    <button class="btn btn-xs btn-info"><i
                                                            class="ace-icon fa fa-pencil bigger-120"></i> 编辑
                                                    </button>
                                                </a>
                                                <a th:href="'javascript:editMenuJsonP('+${menu.id}+')'">
                                                    <button class="btn btn-xs btn-danger"><i
                                                            class="ace-icon fa fa-trash-o bigger-120"></i> 删除
                                                    </button>
                                                </a>
                                                <a th:href="@{/sys/getBundSubMenu?id=}+${menu.id}">
                                                    <button class="btn btn-xs "><i
                                                            class="ace-icon fa fa-exchange bigger-120"></i> 编辑子菜单
                                                    </button>
                                                </a>
                                            </div>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div><!-- /.span -->
                        </div>
                        <!-- 数据分栏行 -->
                        <div class="hr hr32 hr-dotted"></div>
                    </div><!-- /.col -->
                    <div class="hr hr32 hr-dotted"></div>
                    <!-- 页面内容终止位 -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <div class="footer">
        <div class="footer-inner">
            <div class="footer-content">
                <span class="bigger-120"><span class="blue bolder">Ace</span>Application &copy; 2013-2014</span>
                &nbsp; &nbsp;
                <span class="action-buttons">
							<a href="#"><i class="ace-icon fa fa-twitter-square light-blue bigger-150"></i></a>
							<a href="#"><i class="ace-icon fa fa-facebook-square text-primary bigger-150"></i></a>
							<a href="#"><i class="ace-icon fa fa-rss-square orange bigger-150"></i></a>
                </span>
            </div>
        </div>
    </div>
    <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"><i
            class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i></a>
</div><!-- /.main-container -->
<!-- basic scripts -->
<!--[if !IE]> -->
<script th:src="@{/assets/js/jquery-2.1.4.min.js}"></script>
<!-- <![endif]-->
<!--[if IE]>
<script th:src="@{/assets/js/jquery-1.11.3.min.js}"></script>
<![endif]-->
<script type="text/javascript">
    if ('ontouchstart' in document.documentElement) document.write("<script src='/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>
<script th:src="@{/assets/js/bootstrap.min.js}"></script>
<!-- page specific plugin scripts -->
<script th:src="@{/assets/js/jquery.bootstrap-duallistbox.min.js}"></script>
<script th:src="@{/assets/js/jquery.dataTables.min.js}"></script>
<script th:src="@{/assets/js/jquery.dataTables.bootstrap.min.js}"></script>
<script th:src="@{/assets/js/dataTables.buttons.min.js}"></script>
<script th:src="@{/assets/js/dataTables.select.min.js}"></script>
<!-- ace scripts -->
<script th:src="@{/assets/js/ace-elements.min.js}"></script>
<script th:src="@{/assets/js/ace.min.js}"></script>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    jQuery(function ($) {
        var errCodeVal = $("#errCodeVal").val();
        if (errCodeVal != 0) {
            if (errCodeVal == 200) {
                $("#succMsgDiv").slideToggle("slow");
            } else {
                $("#errMsgDiv").slideToggle("slow");
            }
        }
        $("#menuSubmitButton").click(function () {
            var adminvID = $("#adminvID").val();
            if (adminvID == 0) {
                $("#menuForm").attr("action", "/micoUSC/sys/addSysMenu");
            } else {
                $("#menuForm").attr("action", "/micoUSC/sys/editSysMenu");
            }
            $("#menuForm").submit();
        });
    });
    function editMenuJsonP(uid) {
        var jumpUrl = "/micoUSC/sys/delSysMenu"
        var data = new Object();
        data.id = uid;
        $.ajax({
            url: jumpUrl,
            type: "POST",
            data: data,
            dataType: "jsonp",  //指定服务器返回的数据类型
            jsonp: "callback",   //指定参数名称
            jsonpCallback: "reloadPage",  //指定回调函数名称
            success: function (data) {
                console.info("调用success");
            }
        });
    }
    function reloadPage(obj) {
        var msg = eval(obj)
        if (msg.code != 200) {
            $("#errCodeText").text(msg.code);
            $("#errMsgText").text(msg.msg);
            $("#errMsgDiv").show("slow");
        } else {
            window.document.location.reload();
        }
    }
    function formReset() {
        document.getElementById("menuForm").reset()
    }
</script>
</body>
</html>
